<template>
  <div :class="prefixCls" class="relative h-[100%]">
    <div class="relative mx-auto h-full flex">
      <div class="relative flex-1 p-30px">
        <!-- 右上角的主题、语言选择 -->
        <div class="flex items-center justify-between text-white">
          <div class="flex items-center">
            <img alt="" class="" src="@/assets/imgs/logo-dark.svg" />
          </div>
          <div class="flex items-center justify-end space-x-10px">
            <!-- <ThemeSwitch /> -->
            <!-- <LocaleDropdown class="dark:text-white lt-xl:text-white" /> -->
          </div>
        </div>
        <!-- 右边的登录界面 -->
        <Transition appear enter-active-class="animate__animated animate__bounceInRight">
          <div
            class="m-auto h-full w-[100%] flex items-center at-2xl:max-w-420px at-lg:max-w-420px at-md:max-w-420px at-xl:max-w-420px"
          >
            <!-- 账号登录 -->
            <LoginForm />
          </div>
        </Transition>
      </div>
    </div>
  </div>
</template>
<script lang="ts" setup>
// import { underlineToHump } from '@/utils'

import { useDesign } from '@/hooks/web/useDesign'
// import { useAppStore } from '@/store/modules/app'
// import { ThemeSwitch } from '@/layout/components/ThemeSwitch'
// import { LocaleDropdown } from '@/layout/components/LocaleDropdown'

import {
  LoginForm
  //  MobileForm, QrCodeForm, RegisterForm, SSOLoginVue
} from './components'

defineOptions({ name: 'Login' })

// const { t } = useI18n()
// const appStore = useAppStore()
const { getPrefixCls } = useDesign()
const prefixCls = getPrefixCls('login')
</script>

<style lang="scss" scoped>
$prefix-cls: #{$namespace}-login;

.#{$prefix-cls} {
  overflow: auto;
  background-image: url('@/assets/svgs/login-bg.svg');
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: cover;
}
</style>
